package com.briup.pts.mapper;

import com.briup.pts.domain.bean.Disease;
import com.briup.pts.domain.bean.DiseaseRecord;
import com.briup.pts.domain.vo.DiseaseRecordVO;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

public interface DiseaseRecordMapper {



     List<DiseaseRecordVO> queryByConditional(@Param("drDId") String drDId,
                                              @Param("drStatus") String drStatus);

     void batchDelete(@Param("drIds")List<Integer> drIds);

     DiseaseRecord queryByAnimalIdWithTime(@Param("animalId")String animalId, @Param("drTime") LocalDateTime drTime);

     void addDiseaseRecord(DiseaseRecord diseaseRecord);

     List<Disease> queryAllDisease();

     /**
      * 根据动物id查询其所有的病症记录及其病症信息
      * @param animalId 动物id
      * @return List<DiseaseRecordVO>
      */
     List<DiseaseRecordVO> queryByAnimalId(String animalId);

     void updateDiseaseRecord(DiseaseRecord diseaseRecord);
}
